# 1 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
;trosyetf3gpsi
;avance-version (12/01/11)
;2D H-1/X correlation via TROSY
;   using sensitivity improvement
;phase sensitive using Echo/Antiecho gradient selection
;using f3 - channel
;(use parameterset TROSYETF3GPSI)
;
;M. Czisch & R. Boelens, J. Magn. Reson. 134, 158-160 (1998)
;K. Pervushin, G. Wider & K. Wuethrich, J. Biomol. NMR 12,
;   345-348 (1998)
;A. Meissner, T. Schulte-Herbrueggen, J. Briand & O.W. Sorensen, Mol. Phys. 96,
;   1137-1142 (1998)
;J. Weigelt, J. Am. Chem. Soc. 120, 10778-10779 (1998)
;M. Rance, J.P. Loria & A.G. Palmer III, J. Magn. Reson. 136, 91-101 (1999)
;G. Zhu, X.M. Kong & K.H. Sze, J. Biomol. NMR 13, 77-81 (1999)
;
;$CLASS=HighRes
;$DIM=2D
;$TYPE=
;$SUBTYPE=
;$COMMENT=


# 1 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/Avance.incl" 1
;Avance3.incl
;   for AV III
;
;avance-version (13/06/17)
;
;$CLASS=HighRes Incl
;$COMMENT=
# 169 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/Avance.incl"
;$Id: Avance3.incl,v 1.10.2.2 2013/08/30 09:43:33 ber Exp $
# 25 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi" 2

# 1 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/Grad.incl" 1
;Grad2.incl  -  include file for Gradient Spectroscopy
;   for TCU3
;
;avance-version (07/01/17)
;
;$CLASS=HighRes Incl
;$COMMENT=

# 27 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/Grad.incl"
define list<gradient> EA=<EA>


# 31 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/Grad.incl"
;$Id: Grad2.incl,v 1.14 2012/01/31 17:49:21 ber Exp $
# 26 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi" 2

# 1 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/Delay.incl" 1
;Delay.incl  -  include file for commonly used delays
;
;version (13/08/07)
;
;$CLASS=HighRes Incl
;$COMMENT=

# 9 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/Delay.incl"
;general delays

define delay DELTA
define delay DELTA1
define delay DELTA2
define delay DELTA3
define delay DELTA4
define delay DELTA5
define delay DELTA6
define delay DELTA7
define delay DELTA8
define delay DELTA9
define delay DELTA10
define delay DELTA11
define delay DELTA12
define delay DELTA13
define delay DELTA14
define delay DELTA15
define delay DELTA16

define delay TAU
define delay TAU1
define delay TAU2
define delay TAU3
define delay TAU4
define delay TAU5
define delay TAU6
define delay TAU7
define delay TAU8
define delay TAU9
# 40 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/Delay.incl"
define delay INCR1
define delay INCR2
define delay INCR3
define delay INCR4
define delay INCR5
define delay INCR6


;delays for centering pulses
# 50 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/Delay.incl"
define delay CEN_HN1
define delay CEN_HN2
define delay CEN_HN3
define delay CEN_HC1
define delay CEN_HC2
define delay CEN_HC3
define delay CEN_HC4
define delay CEN_HP1
define delay CEN_HP2
define delay CEN_CN1
define delay CEN_CN2
define delay CEN_CN3
define delay CEN_CN4
define delay CEN_CP1
define delay CEN_CP2


;loop counters
# 69 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/Delay.incl"
define loopcounter COUNTER
define loopcounter SCALEF
define loopcounter FACTOR1
define loopcounter FACTOR2
define loopcounter FACTOR3
define loopcounter FACTOR4
define loopcounter FACTOR5
define loopcounter FACTOR6


# 80 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/Delay.incl"
;$Id: Delay.incl,v 1.14.2.1 2013/08/30 09:43:33 ber Exp $
# 27 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi" 2


# 30 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
"p2=p1*2"
"p22=p21*2"
"d11=30m"
"d26=1s/(cnst4*4)"


"d0=6u"
# 38 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
"in0=inf1/2"


"DELTA1=d26-p16-d16-4u"
"DELTA2=d26-p1-p16-d16-4u"
"DELTA3=p19+d16+8u"
# 46 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
"DELTA=d0*2+p14+p21*4/3.1416+8u"


# 52 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
"l0=1"


# 1 "mc_line 55 file /opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi exp. def. part of mc cmd. before ze"
; dimension 2D; AQ_mode  (F1) Echo-Antiecho
define delay MCWRK
define delay MCREST
define delay d0orig
"d0orig=d0"
define loopcounter l0orig
"l0orig=l0"
define loopcounter t1loop
"t1loop=0"
define loopcounter ph1loop
"ph1loop=0"
define loopcounter ST1CNT
"ST1CNT = td1 / 2"
"MCREST = d11 - d11"
"MCWRK = 0.058824*d11"

    dccorr
# 55 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
1 ze 
# 1 "mc_line 55 file /opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi exp. def. of mc cmd. after ze"
LBLAV, MCWRK
      "d0=d0orig + t1loop * in0 "
      "phval6 = (ph1loop % 2) * 180"
      MCWRK ip6 + phval6
      "phval7 = (ph1loop % 2) * 180"
      MCWRK ip7 + phval7
      "phval4 = (t1loop * 180)%360"
      MCWRK ip4 + phval4
      "phval5 = (t1loop * 180)%360"
      MCWRK ip5 + phval5
      "phval31 = (t1loop * 180)%360"
      MCWRK ip31 + phval31
      MCWRK
      "phval0 = ph1loop * 1"
      MCWRK setgrad EA
      "l0 = l0orig + ph1loop * 1"

# 56 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
# 1 "mc_line 56 file /opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi exp. start label for mc cmd."
2 MCWRK  * 8
LBLF1, MCWRK  * 8
LBLST1, MCWRK
  MCREST
# 57 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
3 d1 pl1:f1
  50u setnmr3|0 setnmr0|34|32|33 ctrlgrad 0
  (p1 ph1)
  4u
  p16:gp1
  d16
  DELTA1
  (center (p2 ph2) (p22 ph1):f3 )
  4u
  DELTA1
  p16:gp1
  d16
  (p1 ph3) 
# 71 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
  if "l0 %2 == 1"
     {
     (p21 ph4):f3
     }
  else
     {
     (p21 ph5):f3
     }


  d0 gron0
  2u groff
  (p14:sp3 ph1):f2
  d0 gron0*-1
  2u groff
# 92 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
  4u
  p19:gp2*EA
  d16
  (p22 ph1):f3

  DELTA

  p19:gp2*-1*EA
  d16
# 102 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
  (p1 ph6)
  4u
  p16:gp3
  d16
  DELTA2 pl1:f1
  (center (p2 ph1) (p22 ph1):f3 )
  4u
  DELTA1
  p16:gp3
  d16
  (center (p1 ph1) (p21 ph2):f3 )

  4u
  p16:gp4
  d16
  DELTA1
  (center (p2 ph1) (p22 ph1):f3 )
  DELTA1
  p16:gp4
  d16
  4u
  (p21 ph7):f3

  DELTA3
  (p2 ph1)
  4u
  p19:gp5
  d16
  4u setnmr3^0 setnmr0^34^32^33 ctrlgrad 7
# 132 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
  go=2 ph31
# 1 "mc_line 133 file /opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi exp. mc cmd. in line"
  MCWRK  wr #0 if #0 zd 

  "ph1loop+=1"
      "d0=d0orig + t1loop * in0 "
      "phval6 = (ph1loop % 2) * 180"
      MCWRK ip6 + phval6
      "phval7 = (ph1loop % 2) * 180"
      MCWRK ip7 + phval7
      "phval4 = (t1loop * 180)%360"
      MCWRK ip4 + phval4
      "phval5 = (t1loop * 180)%360"
      MCWRK ip5 + phval5
      "phval31 = (t1loop * 180)%360"
      MCWRK ip31 + phval31
      MCWRK
      "phval0 = ph1loop * 1"
      MCWRK setgrad EA
      "l0 = l0orig + ph1loop * 1"

  lo to LBLF1 times 2
  MCWRK 

  "t1loop+=1"
      "d0=d0orig + t1loop * in0 "
      "phval6 = (ph1loop % 2) * 180"
      MCWRK ip6 + phval6
      "phval7 = (ph1loop % 2) * 180"
      MCWRK ip7 + phval7
      "phval4 = (t1loop * 180)%360"
      MCWRK ip4 + phval4
      "phval5 = (t1loop * 180)%360"
      MCWRK ip5 + phval5
      "phval31 = (t1loop * 180)%360"
      MCWRK ip31 + phval31
      MCWRK
      "phval0 = ph1loop * 1"
      MCWRK setgrad EA
      "l0 = l0orig + ph1loop * 1"

  lo to LBLST1 times ST1CNT
  MCWRK 
  "t1loop=0"
  "ph1loop=0"
  MCWRK rf #0
  lo to LBLAV times tdav
# 135 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
exit 
  

ph1=0
ph2=1
ph3=3
ph4=1 3 2 0
ph5=3 1 2 0
ph6=1
ph7=0
ph31=0 2 3 1

# 148 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
;pl1 : f1 channel - power level for pulse (default)
;pl3 : f3 channel - power level for pulse (default)
;sp3: f2 channel - shaped pulse 180 degree (adiabatic)
;p1 : f1 channel -  90 degree high power pulse
;p2 : f1 channel - 180 degree high power pulse
;p14: f2 channel - 180 degree shaped pulse for inversion (adiabatic)
;p16: homospoil/gradient pulse                       [1 msec]
;p19: gradient pulse 2                               [500 usec]
;p21: f3 channel -  90 degree high power pulse
;p22: f3 channel - 180 degree high power pulse
;d0 : incremented delay (2D)                         [6 usec]
;d1 : relaxation delay; 1-5 * T1
;d11: delay for disk I/O                             [30 msec]
;d16: delay for homospoil/gradient recovery
;d26 : 1/(4J)YH
;cnst4: = J(YH)
;inf1: 1/SW(X) = 2 * DW(X)
;in0: 1/(2 * SW(X)) = DW(X)
;nd0: 2
;ns: 4 * n
;ds: 16
;td1: number of experiments
;FnMODE: echo-antiecho


;use gradient ratio:    gp 0 : gp 1 : gp 2 : gp 3 : gp 4 : gp 5
;                          3 :   30 :   80 :   45 :   50 : 16.2
# 176 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
;for z-only gradients:
;gpz0: 3%
;gpz1: 30%
;gpz2: 80%
;gpz3: 45%
;gpz4: 50%
;gpz5: 16.2%

;use gradient files:
;gpnam1: SMSQ10.100
;gpnam2: SMSQ10.50
;gpnam3: SMSQ10.100
;gpnam4: SMSQ10.100
;gpnam5: SMSQ10.50

# 192 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
                                          ;preprocessor-flags-start
;1: for C-13 and N-15 labeled samples start experiment with
;             option -DLABEL_CN (eda: ZGOPTNS)
                                          ;preprocessor-flags-end


# 199 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/trosyetf3gpsi"
;$Id: trosyetf3gpsi,v 1.10 2012/01/31 17:49:31 ber Exp $
